package com.chinaztt.fda.test;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.chinaztt.fda.ui.R;
import com.chinaztt.fda.ui.base.BaseActivity;

/**
 * 下拉刷新，新版
 */

public class PullListviewNewActivity extends BaseActivity implements View.OnClickListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tatol_pulltofresh);
        findViewById(R.id.button).setOnClickListener(this);
        findViewById(R.id.button2).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.listview:
                startActivity(new Intent(this, PullRefreshListViewActivity.class));
                break;
            case R.id.scrollview:
                startActivity(new Intent(this, PullRefreshScrollViewActivity.class));
                break;
            case R.id.webview:
                startActivity(new Intent(this, PullRefreshWebViewActivity.class));
                break;
        }
    }
}
